krzydec/yolov5 |
您所在的位置:网站首页 › github yolov5 mhsa › krzydec/yolov5 |
![]() ![]() ![]() ![]() ![]() ![]() YOLOv5 🚀 is a family of object detection architectures and models pretrained on the COCO dataset, and represents Ultralytics open-source research into future vision AI methods, incorporating lessons learned and best practices evolved over thousands of hours of research and development. DocumentationSee the YOLOv5 Docs for full documentation on training, testing and deployment. Quick Start Examples InstallPython>=3.6.0 is required with all requirements.txt installed including PyTorch>=1.7: $ git clone https://github.com/ultralytics/yolov5 $ cd yolov5 $ pip install -r requirements.txt InferenceInference with YOLOv5 and PyTorch Hub. Models automatically download from the latest YOLOv5 release. import torch # Model model = torch.hub.load('ultralytics/yolov5', 'yolov5s') # or yolov5m, yolov5l, yolov5x, custom # Images img = 'https://ultralytics.com/images/zidane.jpg' # or file, Path, PIL, OpenCV, numpy, list # Inference results = model(img) # Results results.print() # or .show(), .save(), .crop(), .pandas(), etc. Inference with detect.pydetect.py runs inference on a variety of sources, downloading models automatically from the latest YOLOv5 release and saving results to runs/detect. $ python detect.py --source 0 # webcam file.jpg # image file.mp4 # video path/ # directory path/*.jpg # glob 'https://youtu.be/NUsoVlDFqZg' # YouTube 'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream TrainingRun commands below to reproduce results on COCO dataset (dataset auto-downloads on first use). Training times for YOLOv5s/m/l/x are 2/4/6/8 days on a single V100 (multi-GPU times faster). Use the largest --batch-size your GPU allows (batch sizes shown for 16 GB devices). $ python train.py --data coco.yaml --cfg yolov5s.yaml --weights '' --batch-size 64 yolov5m 40 yolov5l 24 yolov5x 16![]() Get started in seconds with our verified environments and integrations, including Weights & Biases for automatic YOLOv5 experiment logging. Click each icon below for details. ![]() ![]() ![]() ![]() ![]() ![]() We are super excited about our first-ever Ultralytics YOLOv5 🚀 EXPORT Competition with $10,000 in cash prizes!
We love your input! We want to make contributing to YOLOv5 as easy and transparent as possible. Please see our Contributing Guide to get started. ContactFor issues running YOLOv5 please visit GitHub Issues. For business or professional support requests please visit https://ultralytics.com/contact. ![]() ![]() ![]() ![]() ![]() ![]() |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |